package com.atguigu.config;

import com.atguigu.bean.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @Author:zwy
 * @Despriction:
 * @Date:Create in 17:13 2018/7/7
 * @Modify By:
 */
@Configuration
@PropertySource(value = {"classpath:/person.properties"})//读取外部配置文件的属性保存到环境变量中
public class MainConfigofPropertyValues {
    @Bean
    public Person person(){
        return new Person();
    }

}
